<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html>
<html>
<head>
    <title>图片展示</title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
   <style>

.autoImg {
width:750px;
height:400px;
margin:0 auto;
}

</style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
   
    <div id="imgDiv" class="autoImg" style="text-align:center;"></div>
    
    <%@ include file="/WEB-INF/component/commonJS.jsp"%>
   
	<script type="text/javascript">
	   $(document).ready(function() {
		   var dialog = top.dialog.get(window);
		   var data = dialog.data;
		   var path = "${ctx}/" + data.imgPath;
		   $("#imgDiv").append('<img style="width:100%; height:100%;" src="' + path + '" onerror="this.src=\'${ctx}/upload/image/nothingBig.jpg\'"  />');
	   });
	</script>
        
</body>
</html>
